'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 联盟帮助
 * @author 454522799@qq.com (vincent debing)
 */

var dataApi = require('../libs/dataApi');
var _ = require('lodash');
var buildType = require('../consts/buildType.js');
var constantUtil = require('../util/constantUtil.js');

/**
 * 获取帮助次数
 * @param  {[type]} vip [description]
 * @return {[type]}     [description]
 */
exports.getHelpNumConf = function (nexue_lv) {
    var help_num = 0;
    var conf = dataApi.building_lvl.findById(buildType.NEXUS);
    _.some(conf, function (build_item) {
        var lv = build_item.level;
        if (lv == nexue_lv) {
            help_num = build_item.helped_time;
        }
    });
    return help_num;
};
